package com.eclink.asset.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.eclink.asset.asset.domain.dao.AssetApplyRelItem;
import com.eclink.asset.workflow.domain.dto.ApplyRelItem;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
public class FlowApplyDetailDTO {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("ID")
    private String id;

    @ApiModelProperty("编号")
    private String number;

    @ApiModelProperty("申请类型")
    private String applyType;

    @ApiModelProperty("申请数量")
    private Integer num;

    @ApiModelProperty("流程ID")
    private String flowId;

    // 目标用户ID
    private Long targetUserId;

    // 目标用户名称
    @TableField(exist = false)
    private String targetUserName;

    // 目标管理员ID
    private Long targetAdminId;

    // 目标管理员名称
    @TableField(exist = false)
    private String targetAdminName;

    // 目标公司ID
    private Long targetCompanyId;

    // 目标公司名称
    @TableField(exist = false)
    private String targetCompanyName;

    @ApiModelProperty("处理时间")
    private LocalDateTime handleTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("申请处理的状态")
    private Integer handleState;

    @ApiModelProperty("状态")
    private Integer state;

    @ApiModelProperty("删除标志")
    private Integer delFlag;

    @TableField(exist = false)
    private String createUserName;

    private Map<String,Object> formData;

}
